Remove uses of DECLARE_BITMAP in the public HVM save format headers
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 5 Feb 2009 12:16:53 +0000 (12:16 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 5 Feb 2009 12:16:53 +0000 (12:16 +0000)
and replace them with open-coded equivalents.  DECLARE_BITMAP is
not exported to user-space consumers of the Xen headers.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/include/public/arch-x86/hvm/save.h

index 9b78787b44857e164dace59a30c35fafd7b5eeda..bfdc7267c95ea29f488b01011bb446258ad1578a 100644 (file)
@@ -287,7 +287,7 @@ struct hvm_hw_pci_irqs {
      * Indexed by: device*4 + INTx#.
      */
     union {
-        DECLARE_BITMAP(i, 32*4);
+        unsigned long i[16 / sizeof (unsigned long)]; /* DECLARE_BITMAP(i, 32*4); */
         uint64_t pad[2];
     };
 };
@@ -300,7 +300,7 @@ struct hvm_hw_isa_irqs {
      * Indexed by ISA IRQ (assumes no ISA-device IRQ sharing).
      */
     union {
-        DECLARE_BITMAP(i, 16);
+        unsigned long i[1];  /* DECLARE_BITMAP(i, 16); */
         uint64_t pad[1];
     };
 };